package com.dmapp.utils;



public class g {

	public static boolean DEBUG = true;
	public static boolean RELEASE = !DEBUG;
	
	public static boolean NET_SHOPPING_CAR = false;
	public static boolean LOCAL_SHOPPING_CAR = !NET_SHOPPING_CAR;
	
	
	
	
	public static boolean X_INSIDE = true;
	
	
	
	public static boolean THIRD_PARTY = false;
	
	
	
	
	
	 
	/*
	public static void showSimpleAlertDialog(Activity activity, String title, String messsage,
			String btnName) {
		
		new AlertDialog.Builder(activity)
				.setTitle(title)
				.setMessage(messsage)
				.setPositiveButton(btnName,
						new DialogInterface.OnClickListener() {
							@Override
							public void onClick(DialogInterface dialog,
									int which) {
								// TODO Auto-generated method stub
								dialog.dismiss();
							}
						}).create().show();

	}
	*/
	
	/*
	public static boolean isNetBackSucess2(String message){
		
		String[] array =message.split("\\|");
		if(array == null || array.length < 2) // 或者长度不够
			return false;
		
		String backResult =array[0];
		String content=array[1];
		if(backResult.equals("0")){	
	//		Utils.showToastShort(activity, content);
			return true;
		}
		else
			return false;
		
		
	}
	
	
	public static boolean isNetBackSucess3( String message){
		
		
		
		String[] array =message.split("\\|");
		if(array == null || array.length < 3) // 或者长度不够
			return false;
		
		String backResult =array[0];
		String content=array[1];
		String value =array[2];
		if(backResult.equals("0")){	
		//	Utils.showToastShort(activity, content);
			return true;
		}
		else  // 这里判断2或者4, 重新登陆呢?
			return false;
	
		
	}
	
	*/
	
	
	/*
		
		String[] array =message.split("\\|");
		if(array == null || array.length < 3) // 或者长度不够
			return;
		
		String backResult = array[0];
		String content=array[1];
		String value =array[2];
		if(backResult.substring(0,1).equals("0")){
			
			Utils.showToastShort(activity, "上传成功");
		}
	 */
	
	
}
